<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    const obj = {
        name: 'jack',
        sayCall_Apply(name, age) {
            console.log(`${name},my name is ${this.name},${age} years old`)
        },
        sayBind(name) {
            console.log(`${name},my name is ${this.name}`)
        }
    }

    const obj_1 = {
        name: '张三'
    }

    const obj_2 = {
        name: '李四'
    }

    obj.sayCall_Apply.call(obj_1, "marry", 20) // marry 张三 20
    obj.sayCall_Apply.apply(obj_1, ["marry2", "21"]) // marry2 张三 21
    obj.sayBind.bind(obj_2, "ben")() // 李四
</script>
</body>
</html>